﻿using System;

using System.Collections.Generic;
using System.Text;
using ScannerApp.Utils;

namespace ScannerApp.ScannerWebserviceWrapper
{
    public class QueryResult
    {
        public List<ProductStockInfo> productStockInfoList;
        public List<QRStockInfo> qrStockInfo;
        public List<Product> products;

        public  bool isQR;
        public int orderTotalPage;
        public int orderTotalCount;
        private int scanTotalPage;
        private int scanTotalCount;

        public int ScanTotalPage
        {
            get { return scanTotalPage; }
            set { scanTotalPage = value; }
        }

        public int ScanTotalCount
        {
            get { return scanTotalCount; }
            set { scanTotalCount = value; }
        }

        public int OrderTotalPage
        {
            get { return orderTotalPage; }
            set { orderTotalPage = value; }
        }

        public int OrderTotalCount
        {
            get { return orderTotalCount; }
            set { orderTotalCount = value; }
        }

        public bool IsQR
        {
            get { return isQR; }
            set { isQR = value; }
        }

        
    }



    public class ProductStockInfo
    {

        public  long id;


        [DataTableFieldAttribute(HeaderText = "产品代码")]
        public  String productCode;

        [DataTableFieldAttribute(HeaderText = "批次")]
        public  String batchNumber;


        public  String serialNumber;


        public  string validat;

        [DataTableFieldAttribute(HeaderText = "可用量")]
        public  float useQuantity;


        [DataTableFieldAttribute(HeaderText = "现存量")]
        public  float existsQuantity;


        public  long dcProductLineId;


        public  long dcProductId;


        public  long dcUnitId;


        public  long dcProducerId;


        public  long wmsSettingWarehouseId;


        public  long wmsSettingPositionId;


        public  String productName;


        public  String productSpectication;


        public  String productLineName;


        public  String warehouseName;

        [DataTableFieldAttribute(HeaderText = "货位号")]
        public String positionCode;


    }

    public class QRStockInfo
    {

        public  long id;

        [DataTableFieldAttribute(HeaderText = "序列号")]
        public  String serialNumber;

        [DataTableFieldAttribute(HeaderText = "产品代码")]
        public  String productCode;

        [DataTableFieldAttribute(HeaderText = "批次")]
        public  String batchNumber;

        public  String validat;

        public  float useQuantity;


        public  float existsQuantity;


        public  long productLineId;


        public  long productId;


        public  long unitId;

        public  long producerId;


        public  long wwarehouseId;


        public  long positionId;



        public  String productName;


        public  String productSpectication;


        public  String productLineName;


        public  String warehouseName;


        [DataTableFieldAttribute(HeaderText = "货位号")]
        public String positionCode;
    }
}
